﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EraNet.Core.Model.Account;
using EraNet.Core.Data;
using EraNet.Core.Caching;

namespace EraNet.Services.Account
{
    /// <summary>
    /// 后台管理员账户管理
    /// </summary>
    public partial interface IAdminMemberService
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="UserName"></param>
        /// <param name="Pwd"></param>
        /// <returns></returns>
        AdminMember Login(string UserName, string Pwd, out int result);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Insert(AdminMember model);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Update(AdminMember model);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        AdminMember GetAdminById(int Id);
        /// <summary>
        /// 分页获取用户信息和期所在工作组
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        IList<AdminMapping> SelectPager(int PageIndex, int PageSize, out int PageCount);
        /// <summary>
        /// 根据状态，添加用户ID分页获取用户信息
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="Status">小于0时，不过滤</param>
        /// <param name="CreatedByUserID">小于0时，不过滤</param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        IList<AdminMapping> SelectPager(int PageIndex, int PageSize,int Status,int CreatedByUserID, out int PageCount);


      

    }
}
